package com.itljm.cxrMarket.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.OrderItems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itljm.cxrMarket.entity.Orders;
import com.itljm.cxrMarket.entity.dto.OrderItemProductsDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemsMapper extends BaseMapper<OrderItems> {
    int insertOrderItem(OrderItems orderItem);
    List<OrderItemProductsDTO> selectOrderItemsProductsByOrderId(Integer orderId);
    List<OrderItems> selectByOrderIds(List<Integer> orderId);
    List<OrderItems> selectWithProductsByOrderIds(List<Integer> orderIds);
}




